home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / tools / packer / gnutar / source.lzh / source / sasinclude / ndir.h < prev    next >
C/C++ Source or Header  |  1995-09-16  |  709b  |  44 lines

  1. /* Added since the Amiga version will not compile with SAS/C V6.55,
  2.    "ndir.h" couldn't be found.
  3.    On the other hand, some defines had been missing, so placing
  4.    the appropriate includes here was the best solution.
  5.  
  6.    - AK, 28.3.95
  7.  
  8.    Set S_IF... flags to NULL to get correct results for amiga (was hpw)
  9.  
  10.    - AK, 23.7.95
  11.  */
  12.  
  13. #ifndef NDIR_DUMMY
  14. #define NDIR_DUMMY
  15.  
  16. #include <dos.h>
  17. #include <sys/dir.h>
  18.  
  19. #ifndef _FILE_
  20. #include <sys/file.h>
  21. #endif /* _FILE_ */
  22.  
  23. struct direct
  24. {
  25.  struct dirent x;
  26. };
  27.  
  28.  /* unimplemented signals yet... */
  29.  
  30. #include <signal.h>
  31.  
  32. #define SIGPIPE SIG_MAX
  33.  
  34.  
  35.  /* important */
  36.  
  37. #ifdef mkdir
  38. #undef mkdir
  39. #endif /* mkdir */
  40.  
  41. #define mkdir(x, y) mkdir(x)
  42.  
  43. #endif /* NDIR_DUMMY */
  44.